package org.viettan.android.main.activities.info;

import org.viettan.android.main.R;
import org.viettan.android.main.activities.common.BaseArticleActivity;
import org.viettan.android.main.intents.IntentKeys;
import org.viettan.android.main.managers.ArticleManager;
import org.viettan.android.main.model.InfoSection;

import android.os.Bundle;

import com.google.inject.Inject;

/**
 * Displays a local/hardcoded article inside a scrollview.
 */
public class LocalArticleActivity extends BaseArticleActivity {
    @Inject
    private ArticleManager articleManager;

    @Override
    public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.article);

	InfoSection infoSection = (InfoSection) getIntent().getExtras().get(
		IntentKeys.SECTION_ID.name());
	displayArticle(articleManager.getArticle(infoSection));
    }
}
